home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-06-14 | 4.4 KB | [TEXT/PMED] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jun 13 22:09:20 1990, modified Wed Jun 13 22:09:20 1990, creator 'PMED', type ASCII, 3877 bytes "M2Files.DEF" , at 0xfa5 348 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [PMED] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4d 32 46 69 6c 65 | 73 2e 44 45 46 00 00 00 |..M2File|s.DEF...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 4d 45 | 44 01 00 00 00 00 00 00 |.TEXTPME|D.......|
|00000050| 00 00 00 00 00 0f 25 00 | 00 01 5c a2 9c a2 50 a2 |......%.|..\...P.|
|00000060| 9c a2 50 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..P.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1f 8a 00 00 |........|........|
|00000080| 44 45 46 49 4e 49 54 49 | 4f 4e 20 4d 4f 44 55 4c |DEFINITI|ON MODUL|
|00000090| 45 20 4d 32 46 69 6c 65 | 73 3b 20 20 28 2a 20 4c |E M2File|s; (* L|
|000000a0| 47 20 32 32 2e 30 37 2e | 38 32 20 2c 20 31 34 2e |G 22.07.|82 , 14.|
|000000b0| 30 36 2e 38 33 20 50 46 | 20 2a 29 0d 28 2a 20 61 |06.83 PF| *).(* a|
|000000c0| 64 61 70 74 65 64 20 66 | 6f 72 20 4d 61 63 69 6e |dapted f|or Macin|
|000000d0| 74 6f 73 68 20 62 79 20 | 46 72 61 6e 7a 20 4b 72 |tosh by |Franz Kr|
|000000e0| 6f 6e 73 65 64 65 72 2c | 20 31 37 2e 30 32 2e 38 |onseder,| 17.02.8|
|000000f0| 35 20 31 36 2e 36 2e 38 | 35 20 50 46 2a 29 0d 28 |5 16.6.8|5 PF*).(|
|00000100| 2a 20 6c 61 73 74 20 6d | 6f 64 69 66 69 65 64 20 |* last m|odified |
|00000110| 31 32 2e 30 37 2e 38 35 | 20 2a 29 0d 0d 46 52 4f |12.07.85| *)..FRO|
|00000120| 4d 20 53 59 53 54 45 4d | 20 20 49 4d 50 4f 52 54 |M SYSTEM| IMPORT|
|00000130| 20 57 4f 52 44 2c 41 44 | 44 52 45 53 53 3b 0d 46 | WORD,AD|DRESS;.F|
|00000140| 52 4f 4d 20 4d 61 63 42 | 61 73 65 20 49 4d 50 4f |ROM MacB|ase IMPO|
|00000150| 52 54 20 4c 6f 6e 67 49 | 6e 74 3b 0d 0d 45 58 50 |RT LongI|nt;..EXP|
|00000160| 4f 52 54 20 51 55 41 4c | 49 46 49 45 44 0d 20 20 |ORT QUAL|IFIED. |
|00000170| 46 69 6c 65 2c 20 65 6f | 6c 63 2c 0d 20 20 4f 70 |File, eo|lc,. Op|
|00000180| 65 6e 2c 20 43 72 65 61 | 74 65 2c 20 43 6c 6f 73 |en, Crea|te, Clos|
|00000190| 65 2c 20 44 65 6c 65 74 | 65 2c 20 52 65 6e 61 6d |e, Delet|e, Renam|
|000001a0| 65 2c 20 47 65 74 50 6f | 73 2c 20 53 65 74 50 6f |e, GetPo|s, SetPo|
|000001b0| 73 2c 20 52 65 73 65 74 | 2c 0d 20 20 52 65 61 64 |s, Reset|,. Read|
|000001c0| 43 68 61 72 2c 20 57 72 | 69 74 65 43 68 61 72 2c |Char, Wr|iteChar,|
|000001d0| 20 52 65 61 64 57 6f 72 | 64 2c 20 57 72 69 74 65 | ReadWor|d, Write|
|000001e0| 57 6f 72 64 2c 20 4d 6f | 64 69 66 79 57 6f 72 64 |Word, Mo|difyWord|
|000001f0| 2c 20 45 6e 64 46 69 6c | 65 2c 0d 20 20 53 65 74 |, EndFil|e,. Set|
|00000200| 54 79 70 65 61 6e 64 43 | 72 65 61 74 6f 72 2c 20 |TypeandC|reator, |
|00000210| 47 65 74 54 79 70 65 61 | 6e 64 43 72 65 61 74 6f |GetTypea|ndCreato|
|00000220| 72 2c 20 52 65 61 64 44 | 61 74 61 2c 20 57 72 69 |r, ReadD|ata, Wri|
|00000230| 74 65 44 61 74 61 3b 0d | 0d 43 4f 4e 53 54 20 65 |teData;.|.CONST e|
|00000240| 6f 6c 63 20 3d 20 31 35 | 43 3b 20 28 2a 20 65 6e |olc = 15|C; (* en|
|00000250| 64 20 6f 66 20 6c 69 6e | 65 20 63 68 61 72 61 63 |d of lin|e charac|
|00000260| 74 65 72 20 66 6f 72 20 | 63 68 61 72 61 63 74 65 |ter for |characte|
|00000270| 72 20 66 69 6c 65 73 20 | 2a 29 0d 54 59 50 45 20 |r files |*).TYPE |
|00000280| 46 69 6c 65 3b 0d 0d 50 | 52 4f 43 45 44 55 52 45 |File;..P|ROCEDURE|
|00000290| 20 4f 70 65 6e 20 28 56 | 41 52 20 66 3a 20 46 69 | Open (V|AR f: Fi|
|000002a0| 6c 65 3b 20 56 41 52 20 | 6e 61 6d 65 3a 20 41 52 |le; VAR |name: AR|
|000002b0| 52 41 59 20 4f 46 20 43 | 48 41 52 3b 0d 09 09 72 |RAY OF C|HAR;...r|
|000002c0| 65 61 64 6f 6e 6c 79 3a | 20 42 4f 4f 4c 45 41 4e |eadonly:| BOOLEAN|
|000002d0| 3b 20 56 41 52 20 64 6f | 6e 65 3a 20 42 4f 4f 4c |; VAR do|ne: BOOL|
|000002e0| 45 41 4e 29 3b 0d 20 20 | 28 2a 20 4f 70 65 6e 20 |EAN);. |(* Open |
|000002f0| 61 20 66 69 6c 65 20 61 | 6c 72 65 61 64 79 20 65 |a file a|lready e|
|00000300| 78 69 73 74 69 6e 67 20 | 69 6e 20 64 69 72 65 63 |xisting |in direc|
|00000310| 74 6f 72 79 2e 20 72 65 | 61 64 6f 6e 6c 79 20 3d |tory. re|adonly =|
|00000320| 20 74 6f 20 72 65 61 64 | 20 69 74 20 2a 29 0d 0d | to read| it *)..|
|00000330| 50 52 4f 43 45 44 55 52 | 45 20 43 72 65 61 74 65 |PROCEDUR|E Create|
|00000340| 20 28 56 41 52 20 66 3a | 20 46 69 6c 65 3b 20 56 | (VAR f:| File; V|
|00000350| 41 52 20 6e 61 6d 65 3a | 20 41 52 52 41 59 20 4f |AR name:| ARRAY O|
|00000360| 46 20 43 48 41 52 3b 0d | 09 09 20 20 56 41 52 20 |F CHAR;.|.. VAR |
|00000370| 64 6f 6e 65 3a 20 42 4f | 4f 4c 45 41 4e 29 3b 0d |done: BO|OLEAN);.|
|00000380| 20 20 28 2a 20 4f 70 65 | 6e 20 61 20 6e 65 77 20 | (* Ope|n a new |
|00000390| 66 69 6c 65 2e 20 49 66 | 20 61 6e 20 66 69 6c 65 |file. If| an file|
|000003a0| 20 77 69 74 68 20 74 68 | 65 20 73 61 6d 65 20 6e | with th|e same n|
|000003b0| 61 6d 65 20 61 6c 72 65 | 61 64 79 20 65 78 69 73 |ame alre|ady exis|
|000003c0| 74 73 2c 20 74 68 65 6e | 0d 20 20 20 20 20 74 68 |ts, then|. th|
|000003d0| 65 20 6f 6c 64 20 66 69 | 6c 65 20 69 73 20 70 72 |e old fi|le is pr|
|000003e0| 65 73 65 72 76 65 64 2e | 0d 20 20 20 20 20 43 6c |eserved.|. Cl|
|000003f0| 6f 73 65 20 77 69 6c 6c | 20 74 68 65 6e 20 64 65 |ose will| then de|
|00000400| 73 74 72 6f 79 20 74 68 | 65 20 6f 6c 64 20 66 69 |stroy th|e old fi|
|00000410| 6c 65 2c 20 61 6e 64 20 | 63 61 74 61 6c 6f 67 20 |le, and |catalog |
|00000420| 74 68 65 20 6e 65 77 20 | 66 69 6c 65 2e 0d 20 20 |the new |file.. |
|00000430| 20 20 20 44 65 6c 65 74 | 65 20 77 69 6c 6c 20 74 | Delet|e will t|
|00000440| 68 65 6e 20 64 65 73 74 | 72 6f 79 20 74 68 65 20 |hen dest|roy the |
|00000450| 6e 65 77 20 66 69 6c 65 | 2c 20 61 6e 64 20 6b 65 |new file|, and ke|
|00000460| 65 70 20 74 68 65 20 6f | 6c 64 20 66 69 6c 65 2e |ep the o|ld file.|
|00000470| 20 20 2a 29 0d 20 20 20 | 28 2a 20 4d 61 63 69 6e | *). |(* Macin|
|00000480| 74 6f 73 68 3a 20 6e 61 | 6d 65 73 20 73 74 61 72 |tosh: na|mes star|
|00000490| 74 69 6e 67 20 77 69 74 | 68 20 61 20 24 20 67 6f |ting wit|h a $ go|
|000004a0| 20 74 6f 20 61 20 74 65 | 6d 70 6f 72 61 72 79 20 | to a te|mporary |
|000004b0| 52 41 4d 20 44 69 73 6b | 20 2a 29 0d 0d 50 52 4f |RAM Disk| *)..PRO|
|000004c0| 43 45 44 55 52 45 20 43 | 6c 6f 73 65 28 56 41 52 |CEDURE C|lose(VAR|
|000004d0| 20 66 3a 20 46 69 6c 65 | 3b 20 56 41 52 20 64 6f | f: File|; VAR do|
|000004e0| 6e 65 3a 20 42 4f 4f 4c | 45 41 4e 29 3b 0d 20 20 |ne: BOOL|EAN);. |
|000004f0| 28 2a 20 43 6c 6f 73 65 | 20 61 20 66 69 6c 65 2c |(* Close| a file,|
|00000500| 20 65 6e 74 65 72 20 61 | 20 6e 65 77 20 6e 61 6d | enter a| new nam|
|00000510| 65 20 69 6e 74 6f 20 64 | 69 72 65 63 74 6f 72 79 |e into d|irectory|
|00000520| 20 2a 29 0d 0d 50 52 4f | 43 45 44 55 52 45 20 44 | *)..PRO|CEDURE D|
|00000530| 65 6c 65 74 65 28 56 41 | 52 20 66 3a 20 46 69 6c |elete(VA|R f: Fil|
|00000540| 65 3b 20 56 41 52 20 64 | 6f 6e 65 3a 20 42 4f 4f |e; VAR d|one: BOO|
|00000550| 4c 45 41 4e 29 3b 0d 20 | 20 28 2a 20 43 6c 6f 73 |LEAN);. | (* Clos|
|00000560| 65 20 61 20 66 69 6c 65 | 2c 20 72 65 6d 6f 76 65 |e a file|, remove|
|00000570| 20 66 72 6f 6d 20 64 69 | 72 65 63 74 6f 72 79 20 | from di|rectory |
|00000580| 2a 29 0d 0d 50 52 4f 43 | 45 44 55 52 45 20 52 65 |*)..PROC|EDURE Re|
|00000590| 6e 61 6d 65 28 56 41 52 | 20 6f 6c 64 6e 61 6d 65 |name(VAR| oldname|
|000005a0| 2c 20 6e 65 77 6e 61 6d | 65 3a 20 41 52 52 41 59 |, newnam|e: ARRAY|
|000005b0| 20 4f 46 20 43 48 41 52 | 3b 20 56 41 52 20 64 6f | OF CHAR|; VAR do|
|000005c0| 6e 65 3a 20 42 4f 4f 4c | 45 41 4e 29 3b 0d 20 20 |ne: BOOL|EAN);. |
|000005d0| 28 2a 20 52 65 6e 61 6d | 65 20 61 6e 20 65 78 69 |(* Renam|e an exi|
|000005e0| 73 74 69 6e 67 20 66 69 | 6c 65 2e 20 74 68 65 20 |sting fi|le. the |
|000005f0| 66 69 6c 65 20 6d 75 73 | 74 20 6e 6f 74 20 62 65 |file mus|t not be|
|00000600| 20 6f 70 65 6e 20 2a 29 | 0d 20 20 28 2a 20 52 65 | open *)|. (* Re|
|00000610| 6e 61 6d 65 20 69 73 20 | 6e 6f 74 20 72 65 71 75 |name is |not requ|
|00000620| 69 72 65 64 20 62 79 20 | 74 68 65 20 63 6f 6d 70 |ired by |the comp|
|00000630| 69 6c 65 72 20 2a 29 0d | 0d 50 52 4f 43 45 44 55 |iler *).|.PROCEDU|
|00000640| 52 45 20 47 65 74 50 6f | 73 28 56 41 52 20 66 3a |RE GetPo|s(VAR f:|
|00000650| 20 46 69 6c 65 3b 20 56 | 41 52 20 68 69 67 68 70 | File; V|AR highp|
|00000660| 6f 73 2c 20 6c 6f 77 70 | 6f 73 3a 20 43 41 52 44 |os, lowp|os: CARD|
|00000670| 49 4e 41 4c 29 3b 0d 20 | 20 28 2a 20 47 65 74 20 |INAL);. | (* Get |
|00000680| 63 75 72 72 65 6e 74 20 | 70 6f 73 69 74 69 6f 6e |current |position|
|00000690| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 2a 29 0d | of the |file *).|
|000006a0| 0d 50 52 4f 43 45 44 55 | 52 45 20 53 65 74 50 6f |.PROCEDU|RE SetPo|
|000006b0| 73 28 56 41 52 20 66 3a | 20 46 69 6c 65 3b 20 68 |s(VAR f:| File; h|
|000006c0| 69 67 68 70 6f 73 2c 20 | 6c 6f 77 70 6f 73 3a 20 |ighpos, |lowpos: |
|000006d0| 43 41 52 44 49 4e 41 4c | 29 3b 0d 20 20 28 2a 20 |CARDINAL|);. (* |
|000006e0| 53 65 74 20 66 69 6c 65 | 20 74 6f 20 69 6e 64 69 |Set file| to indi|
|000006f0| 63 61 74 65 64 20 70 6f | 73 69 74 69 6f 6e 2e 0d |cated po|sition..|
|00000700| 20 20 20 20 20 3c 68 69 | 67 68 70 6f 73 2c 6c 6f | <hi|ghpos,lo|
|00000710| 77 70 6f 73 3e 20 69 73 | 20 20 62 79 74 65 2d 70 |wpos> is| byte-p|
|00000720| 6f 73 69 74 69 6f 6e 20 | 61 73 20 61 20 32 6e 2d |osition |as a 2n-|
|00000730| 62 69 74 20 6e 75 6d 62 | 65 72 20 2a 29 0d 0d 50 |bit numb|er *)..P|
|00000740| 52 4f 43 45 44 55 52 45 | 20 52 65 73 65 74 28 56 |ROCEDURE| Reset(V|
|00000750| 41 52 20 66 3a 20 46 69 | 6c 65 29 3b 0d 20 20 28 |AR f: Fi|le);. (|
|00000760| 2a 20 50 6f 73 69 74 69 | 6f 6e 20 74 68 65 20 66 |* Positi|on the f|
|00000770| 69 6c 65 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |ile at t|he begin|
|00000780| 6e 69 6e 67 20 61 6e 64 | 20 73 65 74 20 74 6f 20 |ning and| set to |
|00000790| 69 64 6c 65 20 6d 6f 64 | 65 20 2a 29 0d 0d 50 52 |idle mod|e *)..PR|
|000007a0| 4f 43 45 44 55 52 45 20 | 52 65 61 64 43 68 61 72 |OCEDURE |ReadChar|
|000007b0| 28 56 41 52 20 66 3a 20 | 46 69 6c 65 3b 20 56 41 |(VAR f: |File; VA|
|000007c0| 52 20 63 68 3a 20 43 48 | 41 52 29 3b 0d 20 20 28 |R ch: CH|AR);. (|
|000007d0| 2a 20 52 65 61 64 20 61 | 20 63 68 61 72 61 63 74 |* Read a| charact|
|000007e0| 65 72 20 66 72 6f 6d 20 | 66 69 6c 65 20 2a 29 0d |er from |file *).|
|000007f0| 0d 50 52 4f 43 45 44 55 | 52 45 20 57 72 69 74 65 |.PROCEDU|RE Write|
|00000800| 43 68 61 72 28 56 41 52 | 20 66 3a 20 46 69 6c 65 |Char(VAR| f: File|
|00000810| 3b 20 63 68 3a 20 43 48 | 41 52 29 3b 0d 20 20 28 |; ch: CH|AR);. (|
|00000820| 2a 20 57 72 69 74 65 20 | 61 20 63 68 61 72 61 63 |* Write |a charac|
|00000830| 74 65 72 20 74 6f 20 66 | 69 6c 65 20 2a 29 0d 0d |ter to f|ile *)..|
|00000840| 50 52 4f 43 45 44 55 52 | 45 20 52 65 61 64 57 6f |PROCEDUR|E ReadWo|
|00000850| 72 64 28 56 41 52 20 66 | 3a 20 46 69 6c 65 3b 20 |rd(VAR f|: File; |
|00000860| 56 41 52 20 77 3a 20 57 | 4f 52 44 29 3b 0d 20 20 |VAR w: W|ORD);. |
|00000870| 28 2a 20 52 65 61 64 20 | 61 20 77 6f 72 64 20 66 |(* Read |a word f|
|00000880| 72 6f 6d 20 66 69 6c 65 | 20 2a 29 0d 0d 50 52 4f |rom file| *)..PRO|
|00000890| 43 45 44 55 52 45 20 57 | 72 69 74 65 57 6f 72 64 |CEDURE W|riteWord|
|000008a0| 28 56 41 52 20 66 3a 20 | 46 69 6c 65 3b 20 77 3a |(VAR f: |File; w:|
|000008b0| 20 57 4f 52 44 29 3b 0d | 20 20 28 2a 20 57 72 69 | WORD);.| (* Wri|
|000008c0| 74 65 20 61 20 77 6f 72 | 64 20 74 6f 20 66 69 6c |te a wor|d to fil|
|000008d0| 65 20 2a 29 0d 0d 50 52 | 4f 43 45 44 55 52 45 20 |e *)..PR|OCEDURE |
|000008e0| 4d 6f 64 69 66 79 57 6f | 72 64 28 56 41 52 20 66 |ModifyWo|rd(VAR f|
|000008f0| 3a 20 46 69 6c 65 3b 20 | 77 3a 20 57 4f 52 44 29 |: File; |w: WORD)|
|00000900| 3b 0d 20 20 28 2a 20 4d | 6f 64 69 66 79 20 61 20 |;. (* M|odify a |
|00000910| 77 6f 72 64 20 6f 6e 20 | 66 69 6c 65 20 2a 29 0d |word on |file *).|
|00000920| 20 20 28 2a 20 4d 61 63 | 69 6e 74 6f 73 68 3a 20 | (* Mac|intosh: |
|00000930| 44 6f 65 73 6e 74 20 77 | 6f 72 6b 20 6f 6e 20 74 |Doesnt w|ork on t|
|00000940| 68 65 20 52 41 4d 20 44 | 69 73 6b 20 2a 29 0d 0d |he RAM D|isk *)..|
|00000950| 50 52 4f 43 45 44 55 52 | 45 20 45 6e 64 46 69 6c |PROCEDUR|E EndFil|
|00000960| 65 28 56 41 52 20 66 3a | 20 46 69 6c 65 29 3a 20 |e(VAR f:| File): |
|00000970| 42 4f 4f 4c 45 41 4e 3b | 0d 20 20 28 2a 20 45 6e |BOOLEAN;|. (* En|
|00000980| 64 20 6f 66 20 66 69 6c | 65 20 72 65 61 63 68 65 |d of fil|e reache|
|00000990| 64 20 28 20 54 52 55 45 | 20 77 68 65 6e 20 72 65 |d ( TRUE| when re|
|000009a0| 61 64 69 6e 67 20 74 68 | 65 20 45 4f 46 20 6d 61 |ading th|e EOF ma|
|000009b0| 72 6b 65 72 2c 20 6f 72 | 20 77 68 65 6e 0d 20 20 |rker, or| when. |
|000009c0| 20 20 20 69 6e 20 77 72 | 69 74 65 20 6d 6f 64 65 | in wr|ite mode|
|000009d0| 2e 50 46 29 20 20 2a 29 | 0d 20 20 28 2a 20 74 6f |.PF) *)|. (* to|
|000009e0| 20 62 65 20 63 61 6c 6c | 65 64 20 61 66 74 65 72 | be call|ed after|
|000009f0| 20 61 20 52 65 61 64 43 | 68 61 72 2c 52 65 61 64 | a ReadC|har,Read|
|00000a00| 57 6f 72 64 20 6f 72 20 | 52 65 61 64 42 6c 6f 63 |Word or |ReadBloc|
|00000a10| 6b 20 2a 29 0d 20 20 28 | 2a 20 64 69 66 66 65 72 |k *). (|* differ|
|00000a20| 65 6e 74 20 66 72 6f 6d | 20 74 68 65 20 50 61 73 |ent from| the Pas|
|00000a30| 63 61 6c 20 45 4f 46 2d | 63 6f 6e 63 65 70 74 20 |cal EOF-|concept |
|00000a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 29 | | *)|
|00000a50| 0d 28 2a 20 73 70 65 63 | 69 66 69 63 61 74 69 6f |.(* spec|ificatio|
|00000a60| 6e 20 6e 6f 74 65 73 20 | 66 6f 72 20 74 68 65 20 |n notes |for the |
|00000a70| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00000a80| 66 20 4d 32 46 69 6c 65 | 73 3a 0d 20 69 66 20 61 |f M2File|s:. if a|
|00000a90| 6e 20 65 72 72 6f 72 20 | 6f 63 63 75 72 73 2c 20 |n error |occurs, |
|00000aa0| 74 68 65 6e 20 4d 32 46 | 69 6c 65 73 20 6d 75 73 |then M2F|iles mus|
|00000ab0| 74 20 70 72 69 6e 74 20 | 74 68 65 20 6f 70 65 72 |t print |the oper|
|00000ac0| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 20 64 65 70 |ating sy|stem dep|
|00000ad0| 65 6e 64 65 6e 74 0d 20 | 65 72 72 6f 72 20 64 65 |endent. |error de|
|00000ae0| 74 61 69 6c 73 2e 20 54 | 68 65 20 43 6f 6d 70 69 |tails. T|he Compi|
|00000af0| 6c 65 72 20 6f 72 20 4c | 69 6e 6b 65 72 20 28 61 |ler or L|inker (a|
|00000b00| 73 20 69 6d 70 6f 72 74 | 61 6e 74 20 75 73 65 72 |s import|ant user|
|00000b10| 73 29 20 64 6f 65 73 6e | 74 20 77 61 6e 74 20 74 |s) doesn|t want t|
|00000b20| 6f 0d 20 6b 6e 6f 77 20 | 61 62 6f 75 74 20 69 74 |o. know |about it|
|00000b30| 2e 0d 20 62 75 74 20 2d | 20 66 6f 72 20 4f 70 65 |.. but -| for Ope|
|00000b40| 6e 2c 20 69 66 20 74 68 | 65 20 66 69 6c 65 20 64 |n, if th|e file d|
|00000b50| 6f 65 73 6e 27 74 20 65 | 78 69 73 74 2c 20 74 68 |oesn't e|xist, th|
|00000b60| 65 6e 20 4d 32 46 69 6c | 65 73 20 6d 75 73 74 20 |en M2Fil|es must |
|00000b70| 6e 6f 74 20 64 69 73 70 | 6c 61 79 0d 20 20 20 20 |not disp|lay. |
|00000b80| 20 20 20 61 6e 20 65 72 | 72 6f 72 20 6d 65 73 73 | an er|ror mess|
|00000b90| 61 67 65 2e 20 54 68 65 | 20 63 6f 6d 70 69 6c 65 |age. The| compile|
|00000ba0| 72 20 77 69 6c 6c 20 68 | 61 6e 64 6c 65 20 69 74 |r will h|andle it|
|00000bb0| 20 62 79 20 74 72 79 69 | 6e 67 20 6f 6e 20 74 68 | by tryi|ng on th|
|00000bc0| 65 20 4c 49 42 0d 20 20 | 20 20 20 20 20 64 65 76 |e LIB. | dev|
|00000bd0| 69 63 65 20 65 74 63 2c | 20 61 6e 64 20 64 69 73 |ice etc,| and dis|
|00000be0| 70 6c 61 79 20 74 68 65 | 20 6d 65 73 73 61 67 65 |play the| message|
|00000bf0| 20 69 74 73 65 6c 66 2c | 20 69 66 20 74 68 69 73 | itself,| if this|
|00000c00| 20 61 6c 73 6f 20 66 61 | 69 6c 73 2e 0d 0d 20 57 | also fa|ils... W|
|00000c10| 72 69 74 69 6e 67 20 6f | 6e 20 61 6e 20 65 78 69 |riting o|n an exi|
|00000c20| 73 74 69 6e 67 20 66 69 | 6c 65 20 6d 65 61 6e 73 |sting fi|le means|
|00000c30| 2c 20 74 68 65 20 66 69 | 6c 65 20 73 68 6f 75 6c |, the fi|le shoul|
|00000c40| 64 20 62 65 20 74 72 75 | 6e 63 61 74 65 64 20 61 |d be tru|ncated a|
|00000c50| 74 20 74 68 65 0d 20 63 | 75 72 72 65 6e 74 20 70 |t the. c|urrent p|
|00000c60| 6f 73 69 74 69 6f 6e 2e | 0d 0d 20 44 6f 20 6e 6f |osition.|.. Do no|
|00000c70| 74 20 6d 69 78 20 52 65 | 61 64 2c 20 57 72 69 74 |t mix Re|ad, Writ|
|00000c80| 65 20 61 6e 64 20 4d 6f | 64 69 66 79 20 6d 6f 64 |e and Mo|dify mod|
|00000c90| 65 73 2c 20 75 6e 6c 65 | 73 73 20 63 61 6c 6c 69 |es, unle|ss calli|
|00000ca0| 6e 67 20 52 65 73 65 74 | 20 62 65 74 77 65 65 6e |ng Reset| between|
|00000cb0| 2e 0d 20 44 6f 20 6e 6f | 74 20 6d 69 78 20 43 68 |.. Do no|t mix Ch|
|00000cc0| 61 72 20 61 6e 64 20 57 | 6f 72 64 20 63 61 6c 6c |ar and W|ord call|
|00000cd0| 73 20 28 66 69 6c 65 20 | 73 74 72 75 63 74 75 72 |s (file |structur|
|00000ce0| 65 20 6d 61 79 20 62 65 | 20 64 69 66 66 65 72 65 |e may be| differe|
|00000cf0| 6e 74 29 2e 0d 2a 29 0d | 0d 28 2a 20 54 68 65 20 |nt)..*).|.(* The |
|00000d00| 6e 65 78 74 20 72 6f 75 | 74 69 6e 65 73 20 61 72 |next rou|tines ar|
|00000d10| 65 20 73 70 65 63 69 66 | 69 63 20 66 6f 72 20 74 |e specif|ic for t|
|00000d20| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 20 69 6d 70 |he Macin|tosh imp|
|00000d30| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 2e 20 2a 29 0d |lementat|ion. *).|
|00000d40| 0d 28 2a 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |.(* the |followin|
|00000d50| 67 20 70 72 6f 63 65 64 | 75 72 65 73 20 77 69 6c |g proced|ures wil|
|00000d60| 6c 20 77 6f 72 6b 20 6f | 6e 20 6f 70 65 6e 20 66 |l work o|n open f|
|00000d70| 69 6c 65 73 20 2a 29 0d | 50 52 4f 43 45 44 55 52 |iles *).|PROCEDUR|
|00000d80| 45 20 53 65 74 54 79 70 | 65 61 6e 64 43 72 65 61 |E SetTyp|eandCrea|
|00000d90| 74 6f 72 20 28 56 41 52 | 20 66 3a 46 69 6c 65 3b |tor (VAR| f:File;|
|00000da0| 20 56 41 52 20 46 54 79 | 70 65 2c 43 72 65 61 74 | VAR FTy|pe,Creat|
|00000db0| 6f 72 3a 41 52 52 41 59 | 20 4f 46 20 43 48 41 52 |or:ARRAY| OF CHAR|
|00000dc0| 3b 56 41 52 20 64 6f 6e | 65 3a 42 4f 4f 4c 45 41 |;VAR don|e:BOOLEA|
|00000dd0| 4e 29 3b 0d 50 52 4f 43 | 45 44 55 52 45 20 47 65 |N);.PROC|EDURE Ge|
|00000de0| 74 54 79 70 65 61 6e 64 | 43 72 65 61 74 6f 72 20 |tTypeand|Creator |
|00000df0| 28 56 41 52 20 66 3a 46 | 69 6c 65 3b 20 56 41 52 |(VAR f:F|ile; VAR|
|00000e00| 20 46 54 79 70 65 2c 43 | 72 65 61 74 6f 72 3a 41 | FType,C|reator:A|
|00000e10| 52 52 41 59 20 4f 46 20 | 43 48 41 52 3b 56 41 52 |RRAY OF |CHAR;VAR|
|00000e20| 20 64 6f 6e 65 3a 42 4f | 4f 4c 45 41 4e 29 3b 0d | done:BO|OLEAN);.|
|00000e30| 0d 28 2a 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |.(* the |followin|
|00000e40| 67 20 72 6f 75 74 69 6e | 65 73 20 61 6c 6c 6f 77 |g routin|es allow|
|00000e50| 20 74 6f 20 72 65 61 64 | 20 6d 6f 72 65 20 74 68 | to read| more th|
|00000e60| 61 6e 20 6f 6e 65 20 77 | 6f 72 64 20 61 74 20 61 |an one w|ord at a|
|00000e70| 20 74 69 6d 65 2e 0d 20 | 54 68 65 79 20 61 72 65 | time.. |They are|
|00000e80| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 74 6f 20 74 | compati|ble to t|
|00000e90| 68 65 20 52 65 61 64 57 | 6f 72 64 2f 57 72 69 74 |he ReadW|ord/Writ|
|00000ea0| 65 57 6f 72 64 20 6d 6f | 64 65 20 2a 29 0d 28 2a |eWord mo|de *).(*|
|00000eb0| 20 63 6f 75 6e 74 20 69 | 73 20 69 6e 20 73 74 6f | count i|s in sto|
|00000ec0| 72 61 67 65 20 75 6e 69 | 74 73 2c 20 69 2e 20 65 |rage uni|ts, i. e|
|00000ed0| 2e 20 62 79 74 65 73 2e | 20 45 6e 64 46 69 6c 65 |. bytes.| EndFile|
|00000ee0| 20 74 65 6c 6c 73 20 61 | 20 62 61 64 ca 52 65 61 | tells a| bad.Rea|
|00000ef0| 64 44 61 74 61 20 2a 29 | 0d 50 52 4f 43 45 44 55 |dData *)|.PROCEDU|
|00000f00| 52 45 20 52 65 61 64 44 | 61 74 61 20 28 56 41 52 |RE ReadD|ata (VAR|
|00000f10| 20 66 3a 46 69 6c 65 3b | 20 56 41 52 20 76 61 72 | f:File;| VAR var|
|00000f20| 69 61 62 6c 65 3a 20 41 | 52 52 41 59 20 4f 46 20 |iable: A|RRAY OF |
|00000f30| 57 4f 52 44 3b 20 63 6f | 75 6e 74 3a 20 43 41 52 |WORD; co|unt: CAR|
|00000f40| 44 49 4e 41 4c 29 3b 0d | 50 52 4f 43 45 44 55 52 |DINAL);.|PROCEDUR|
|00000f50| 45 20 57 72 69 74 65 44 | 61 74 61 28 56 41 52 20 |E WriteD|ata(VAR |
|00000f60| 66 3a 46 69 6c 65 3b 20 | 56 41 52 20 76 61 72 69 |f:File; |VAR vari|
|00000f70| 61 62 6c 65 3a 20 41 52 | 52 41 59 20 4f 46 20 57 |able: AR|RAY OF W|
|00000f80| 4f 52 44 3b 20 63 6f 75 | 6e 74 3a 20 43 41 52 44 |ORD; cou|nt: CARD|
|00000f90| 49 4e 41 4c 29 3b 0d 0d | 45 4e 44 20 4d 32 46 69 |INAL);..|END M2Fi|
|00000fa0| 6c 65 73 2e 0d 00 00 00 | 00 00 00 00 00 00 00 00 |les.....|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00001010| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 02 00 00 0e c0 00 00 | 10 00 99 bd 1b 6e 9b d2 |........|.....n..|
|00001030| 0b 4d 32 46 69 6c 65 73 | 2e 44 45 46 02 00 00 00 |.M2Files|.DEF....|
|00001040| 54 45 58 54 50 4d 45 44 | 01 00 00 40 00 40 50 ba |TEXTPMED|...@.@P.|
|00001050| 00 00 54 45 58 54 50 4d | 45 44 01 00 00 40 00 40 |..TEXTPM|ED...@.@|
|00001060| 50 ba 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |P.......|........|
|00001070| 00 00 99 8c e7 4d 00 00 | 0f 25 00 00 01 5c 45 44 |.....M..|.%...\ED|
|00001080| 49 54 01 00 00 40 00 c0 | 79 ab 00 00 00 85 00 6a |IT...@..|y......j|
|00001090| 00 00 31 53 00 00 34 00 | 00 00 00 00 00 00 00 00 |..1S..4.|........|
|000010a0| 00 00 9b ae d7 8f 9b bc | 76 c5 0c 4d 43 4c 4f 4f |........|v..MCLOO|
|000010b0| 4b 55 50 2e 4d 4f 44 00 | 80 00 54 45 58 54 45 44 |KUP.MOD.|..TEXTED|
|000010c0| 49 54 01 00 00 00 00 40 | 79 ab 00 00 00 99 00 9b |IT.....@|y.......|
|000010d0| 00 00 10 39 00 00 14 00 | 00 00 00 00 00 00 00 00 |...9....|........|
|000010e0| 00 00 99 8c e7 4d 9b d2 | d8 60 0b 4d 32 46 69 6c |.....M..|.`.M2Fil|
|000010f0| 65 73 2e 44 45 46 80 00 | 54 45 58 54 45 44 49 54 |es.DEF..|TEXTEDIT|
|00001100| 00 00 00 04 00 06 00 08 | 00 00 00 0a 00 09 06 4d |........|.......M|
|00001110| 6f 6e 61 63 6f 04 00 00 | 01 00 00 00 01 16 00 00 |onaco...|........|
|00001120| 00 16 00 00 00 46 00 03 | b4 60 02 94 00 00 00 1c |.....F..|.`......|
|00001130| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00001140| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 03 a7 ba |........|........|
|00001150| 03 eb ff ff 00 00 00 08 | 00 03 a7 b6 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+